from google.appengine.ext.webapp import Request
from webob.multidict import MultiDict

class Request(Request):
  """ Mocked out request for testing """
  def __init__(self, url='/', params={}, **kwargs):
    """ Mock request for testing
    
    Args:
      uri : The complete URI
      params : Parameters passed to this request --
        can either be take dict form or a list of key, value tuples
      kwargs : Any other attributes we want request to have
      
    """
    self.url = url
    self.params = MultiDict(params)
    for key, item in kwargs.items():
      setattr(self, key, item)

